package com.test.maze;


public class Data {
    private int x;
    private int y;
    private String action;
    private Data parent;

    public Data(int x, int y, String action, Data parent) {
        this.x = x;
        this.y = y;
        this.action = action;
        this.parent = parent;
    }

    public int getX() {
        return x;
    }

    public void setX(int x) {
        this.x = x;
    }

    public int getY() {
        return y;
    }

    public void setY(int y) {
        this.y = y;
    }

    public String getAction() {
        return action;
    }

    public void setAction(String action) {
        this.action = action;
    }

    public Data getParent() {
        return parent;
    }

    public void setParent(Data parent) {
        this.parent = parent;
    }


    public boolean equals(Data obj) {
        return this.x == obj.getX() && this.y == obj.getY() && this.action.equals(obj.getAction());
    }



}
